package office.action.finance.form;

import office.bo.finance.impl.WeekCash;
import platform.common.bo.IIdentifiableObj;

public class WeekCashForm {

	private String id;
	private String entryWeek;		//申请周
	private double entryCash;		//申请资金
	private String remark;			//备注
	private String entryUserId;		//提交人id
	private String entryUserName;	//提交人名字
	private String entryRole;		//提交人角色
	private String checkRole;		//审批人角色
	private String entryDate;
	private String state;
	private String stateName;
	private String deptId;					//部门id
	private String companyId;
	public WeekCashForm(){
		
	}
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		WeekCash bo = (WeekCash)newObj;
		bo.setEntryWeek(entryWeek);
		bo.setEntryCash(entryCash);
		bo.setRemark(remark);
		bo.setEntryRole(entryRole);
		bo.setUserId(entryUserId);
		return bo;
	}
	
	
	public WeekCashForm(String id,String entryWeek,double entryCash,String remark,String entryUserId,
			String entryRole,String checkRole,String entryDate,String state,String entryUserName) {
		this.id = id;
		this.entryWeek = entryWeek;
		this.entryCash = entryCash;
		this.remark = remark;
		this.entryUserId = entryUserId;
		this.entryRole = entryRole;
		this.checkRole = checkRole;
		this.entryDate = entryDate;
		this.state = state;
		this.entryUserName = entryUserName;
		if(null!=state && !("").equals(state)){
			if(state.equals("-1")){
				this.stateName = "审批驳回";
			}else if(state.equals("0")){
				this.stateName = "未提交审批";
			}else if(state.equals("1")){
				this.stateName = "审批过程";
			}else if(state.equals("100")){
				this.stateName="审批完成";
			}
		}
	}
	public String getEntryWeek() {
		return entryWeek;
	}
	public void setEntryWeek(String entryWeek) {
		this.entryWeek = entryWeek;
	}
	public double getEntryCash() {
		return entryCash;
	}
	public void setEntryCash(double entryCash) {
		this.entryCash = entryCash;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getEntryUserId() {
		return entryUserId;
	}
	public void setEntryUserId(String entryUserId) {
		this.entryUserId = entryUserId;
	}
	public String getEntryUserName() {
		return entryUserName;
	}
	public void setEntryUserName(String entryUserName) {
		this.entryUserName = entryUserName;
	}
	public String getEntryRole() {
		return entryRole;
	}
	public void setEntryRole(String entryRole) {
		this.entryRole = entryRole;
	}
	public String getCheckRole() {
		return checkRole;
	}
	public void setCheckRole(String checkRole) {
		this.checkRole = checkRole;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getEntryDate() {
		return entryDate;
	}
	public void setEntryDate(String entryDate) {
		this.entryDate = entryDate;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getStateName() {
		return stateName;
	}
	public void setStateName(String stateName) {
		this.stateName = stateName;
	}
	public String getDeptId() {
		return deptId;
	}
	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	public String getCompanyId() {
		return companyId;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	
}
